.chat-container {
  display: flex;
  flex-direction: column;
  height: 100vh;
}

.header {
  position: fixed;
  top: 44px;
  /*#ifdef MP-WEIXIN||APP-PLUS*/
  top: 0;
  /*#endif*/
  left: 0;
  right: 0;

  background-color: #fff;
  border-bottom: 1rpx solid #eee;
  z-index: 100;

  .user-info {
    display: flex;
    align-items: center;
    padding: 10rpx 0;

    .avatar {
      width: 80rpx;
      height: 80rpx;
      border-radius: 50%;
      margin-right: 20rpx;
    }

    .nickname {
      font-size: 32rpx;
      color: #333;
      font-weight: 500;
    }

  }
}

.leave-message {
  margin-top: 80px;
}

.message-list {
  flex: 1;
  margin-top: 88px;
  padding: 20rpx;
  padding-bottom: 280rpx;
  background-color: #f5f5f7;
  overflow-y: auto;
  height: calc(100vh - 88px - 180rpx);
}

.message-item {
  display: flex;
  margin-bottom: 30rpx;
  position: relative;
}

.message-item.self {
  flex-direction: row-reverse;
}

.avatar {
  width: 80rpx;
  height: 80rpx;
  border-radius: 50%;
  margin: 0 20rpx;
}

.message-content {
  max-width: 70%;
  padding: 20rpx 24rpx;
  border-radius: 20rpx;
  background-color: #fff;
  box-shadow: 0 2rpx 10rpx rgba(0, 0, 0, 0.05);
  position: relative;
  word-break: break-all;
}

.self .message-content {
  background-color: #ffffff;
  color: #000;
}

.input-area {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  border-top: 1rpx solid #eee;
  padding: 20rpx;
  background-color: #f7f7f7;
  z-index: 100;
}

.input-box {
  display: flex;
  align-items: center;
  padding: 0 20rpx;
}

.input {
  flex: 1;
  padding: 20rpx;
  background-color: #fff;
  border-radius: 36rpx;
  margin: 0 20rpx;
  min-height: 72rpx;
  overflow: auto;
  max-height: 200rpx;
}

.send-btn {
  margin-left: 10rpx;
  padding: 12rpx 30rpx;
  background-color: #07C160;
  color: #fff;
  border-radius: 36rpx;
  font-size: 28rpx;
}

.toolbar {
  display: flex;
  padding: 10rpx 20rpx;
  align-items: center;
  background-color: #f7f7f7;
}

.tool-icon {
  width: 56rpx;
  height: 56rpx;
  margin-right: 30rpx;
  opacity: 0.8;
}

.tool-icon:active {
  opacity: 0.6;
}

.goods-info {


  .goods-image {
    width: 100rpx;
    height: 100rpx;
  }

  .goods-name {
    font-size: 28rpx;
  }

}

.order-message {
  .order-image{
    width: 100rpx;
    height: 100rpx;
  }
  .order-sn{
    color: red;
  }
}

.goods-price {
  font-size: 28rpx;
  color: #e90808;
  margin-left: 10rpx;
}

.file-message {
  display: flex;
  align-items: center;
  padding: 24rpx;
  background: #fff;
  border-radius: 16rpx;
  width: 450rpx;
  box-shadow: 0 2rpx 10rpx rgba(0, 0, 0, 0.05);
}

.file-icon {
  width: 80rpx;
  height: 80rpx;
  margin-right: 20rpx;
}

.file-info {
  flex: 1;
  overflow: hidden;
}

.file-name {
  font-size: 28rpx;
  color: #333;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-size {
  font-size: 24rpx;
  color: #999;
  padding-left: 10rpx;
  margin-top: 10rpx;
}

.download-icon {
  font-size: 24rpx;
  color: #007AFF;
  padding: 10rpx;
  position: absolute;
  right: 10rpx;
  bottom: 10rpx;
}

.msg-image {
  max-width: 100rpx;
  max-height: 100rpx;
  border-radius: 10rpx;
}

.loading {
  text-align: center;
  padding: 20rpx;
  color: #999;
}

.emoji-panel {
  height: 400rpx;
  background-color: #fff;
  padding: 20rpx;
  display: flex;
  flex-wrap: wrap;
  overflow-y: scroll;
}

.emoji-item {
  width: 64rpx;
  height: 64rpx;
  padding: 10rpx;
  font-size: 40rpx;
  text-align: center;
}

.status {
  font-size: 24rpx;
  padding: 4rpx 12rpx;
  border-radius: 24rpx;
  margin-left: 20rpx;
  background-color: #f5f5f5;
  color: #999;
}

.status.online {
  background-color: #e8f5e9;
  color: #4caf50;
}

.leave-message {
  padding: 40rpx;
  background-color: #fff;
}

.leave-message-title {
  font-size: 32rpx;
  color: #333;
  text-align: center;
  margin-bottom: 40rpx;
}

.form-item {
  margin-bottom: 30rpx;
}

.form-item input,
.form-item textarea {
  width: 100%;
  padding: 20rpx;
  border: 2rpx solid #eee;
  border-radius: 8rpx;
  font-size: 28rpx;
}

.form-item textarea {
  height: 200rpx;
}

.submit-btn {
  width: 100%;
  height: 88rpx;
  line-height: 88rpx;
  background-color: #07C160;
  color: #fff;
  border-radius: 44rpx;
  font-size: 32rpx;
  margin-top: 40rpx;
}
